package com.zlll.winner.enums.bbs;

import com.zlll.winner.enums.biz.Constant;

public class PostEnum {

    /**
     * 贴子类型枚举
     */
    public enum TypeEnum implements Constant {
        TEXT("文本",1),
        IMAGE("图片",2),
        AUDIO("语音",3),
        VIDEO("视频",4);

        private String desc;
        private int value;

        TypeEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }

        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }

    }

    /**
     * 贴子状态枚举
     */
    public enum StatusEnum implements Constant {
        DRAFT("草稿",0),
        PUT_AWAY("已上架",1),
        PUT_BACK("已下架",2);

        private String desc;
        private int value;

        StatusEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }

        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }

    }

    /**
     * 贴子审核状态枚举
     */
    public enum AuditStatusEnum implements Constant {
        WAIT("待审核",1),
        PASS("已通过",2),
        NO_PASS("不通过",3);

        private String desc;
        private int value;

        AuditStatusEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }

        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }

    }

    /**
     * 维权状态
     */
    public enum SafeGuardStatusEnum implements Constant {
        SLOVE("已解决",1),
        REPLY("已回复",2),
        FOLLOW("跟踪报道",3),
        PASSED("已通过",4),
        DOWN("已下架",5);

        private String desc;
        private int value;

        SafeGuardStatusEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }

        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }

    }


}
